package com.jml;



/**
 * @author:jml
 * @date: 2019/5/21 16:40
 * @description：
 */
public class BSTSet<E extends Comparable<E>> implements Set<E> {

    private 二分搜索树<E> bst;

    public BSTSet() {
        bst = new 二分搜索树<>();
    }

    @Override
    public int getSize(){
        return bst.size();
    }

    @Override
    public boolean isEmpty(){
        return bst.isEmpty();
    }

    @Override
    public void add(E e){
        bst.add(e);
    }

    @Override
    public boolean contains(E e){
        return bst.contains(e);
    }

    @Override
    public void remove(E e){
        bst.remove(e);
    }


}
